// api/user.js  封装关于用户的接口
import http from '@/utils/request'
// 登录接口
export const reqLogin = obj => {
  return http({
    method: 'post',
    url: '/api/login',
    data: obj
  })
}
// 注册接口
export const reqRegister = data => {
  return http({
    method: 'post',
    url: '/api/reg',
    data
  })
}
